<?php
// +-------------------------------------------------------------------
// |
// +-------------------------------------------------------------------
// | Copyright (c) 2009-2016 All rights reserved.
// +-------------------------------------------------------------------
namespace Service\Api\V1;

class EyeHead
{
    public $login = false; //是否需要登录才能访问该接口
    public $title = "选择头像";
    public $group = '用户';
    public $desc = "";

    public $input = [

    ];

    public $output = [
        'list' => [
            ['pic' => 'label=图片url;',]
        ],
    ];

    public function run($param, $uid)
    {
        $list = [];
        for ($i=1;$i<13;$i++){
            array_push($list,'http://'.C('qiniu_domain').'/'.$i.'.jpg');
        }
        return [
            'list' => $list,
        ];
    }
}
